package net.qhzw.vip.qiyu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import net.qhzw.vip.qiyu.entity.Shop;
import net.qhzw.vip.qiyu.result.PageResult;

import java.util.List;

public interface ShopService extends IService<Shop> {

    /**
     * 分页查询商铺
     * @param page
     * @return
     */
    PageResult<Shop> findByPage(Page<Shop> page, String shopName);

    /**
     * 添加商铺
     * @param userId
     * @param shop
     * @return
     */
    boolean addShop(Long userId, Shop shop);


    /***
     * 修改商铺状态
     * @param shop
     * @return
     */
    boolean setStatus(Shop shop);

    String getWxMchIdById(Long shopId);


    boolean setIsShow(List<String> uids);

    boolean setStatusShow(Shop shop);
}
